package com.woniuedu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuedu.dao.CommentMapper;
import com.woniuedu.entity.Comment;
import com.woniuedu.service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    @Autowired(required = false)
    private CommentMapper commentMapper;

    @Override
    public int addComments(Comment comment) {
        return commentMapper.insert(comment);
    }
}
